package com.tc.modules.sys.service.impl;

import com.tc.common.utils.UUIDUtil;
import com.tc.modules.sys.mapper.SysLogMapper;
import com.tc.modules.sys.model.entity.SysLog;
import com.tc.modules.sys.service.ISysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: tianchao
 * @Date: 2020/4/25 18:58
 * @Description:
 */
@Service
public class SysLogServiceImpl implements ISysLogService {

    @Autowired
    private SysLogMapper sysLogMapper;
    /**
     * 删除所有日志信息
     * @return
     */
    public Boolean deleteAll(){
        return true;
    }

    @Override
    public void insert(SysLog log) {
        log.setId(UUIDUtil.value());
        sysLogMapper.insert(log);
    }
}
